From: Florian Müllner Date: Tue, 29 Jan 2019 21:58:40 +0000 (+0100) Subject: keyboard: Fix undefined variable in fall-through message X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~897^2^2~88 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=4f76e05058318495502f17194cc765aefe4cb626;p=gnome-shell.git keyboard: Fix undefined variable in fall-through message Spotted by eslint. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/375 --- diff --git a/js/ui/status/keyboard.js b/js/ui/status/keyboard.js index 0e5b18504..7f830b6df 100644 --- a/js/ui/status/keyboard.js +++ b/js/ui/status/keyboard.js @@ -969,7 +969,8 @@ class InputSourceIndicator extends PanelMenu.Button { } let item; - switch (prop.get_prop_type()) { + let type = prop.get_prop_type(); + switch (type) { case IBus.PropType.MENU: item = new PopupMenu.PopupSubMenuMenuItem(prop.get_label().get_text()); this._buildPropSubMenu(item.menu, prop.get_sub_props());